//
//  ShortDetailViewController.m
//  Commerce
//
//  Created by xiaofeifei on 15/2/17.
//  Copyright (c) 2015年 fei. All rights reserved.
//

#import "ShortDetailViewController.h"

@interface ShortDetailViewController ()

@end

@implementation ShortDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navLabel.text = @"短驳详情";
    [self configUI];
    // Do any additional setup after loading the view from its nib.
}

- (void)configUI{
    _timeLabel.text = [_dataDic[@"UpdateTime"] isEqual:[NSNull null]]?@"":_dataDic[@"UpdateTime"];
    _viewNumLabel.text = @"";
    _licensePlateLabel.text = [_dataDic[@"CarNo"] isEqual:[NSNull null]]?@"":_dataDic[@"CarNo"];
    _typeLabel.text = [_dataDic[@"CarTypeName"] isEqual:[NSNull null]]?@"":_dataDic[@"CarTypeName"];
    _specLabel.text = [_dataDic[@"CarSpecName"] isEqual:[NSNull null]]?@"":_dataDic[@"CarSpecName"];
    _weightLabel.text = [NSString stringWithFormat:@"%@吨",[_dataDic[@"CarWeight"] isEqual:[NSNull null]]?@"0":_dataDic[@"CarWeight"]];
    _sendNameLabel.text = [_dataDic[@"TrueName"] isEqual:[NSNull null]]?@"":_dataDic[@"TrueName"];
    _carAddressLabel.text = [_dataDic[@"StartingCityName"] isEqual:[NSNull null]]?@"":_dataDic[@"StartingCityName"];
    _commAddressLabel.text = [_dataDic[@"DestinationCityName"] isEqual:[NSNull null]]?@"":_dataDic[@"DestinationCityName"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
